package plugins.detail;

import kd.bos.base.AbstractBasePlugIn;
import kd.bos.context.RequestContext;
import kd.sdk.plugin.Plugin;

import java.util.EventObject;

/**
 * 基础资料插件
 */
public class HealthyDataInvisible extends AbstractBasePlugIn implements Plugin {

    @Override
    public void afterLoadData(EventObject e) {
        super.afterLoadData(e);

        String currentUserName = RequestContext.get().getUserName();

        if("吕璐君".equals(currentUserName)){

            this.getView().setVisible(false,"bar_delete");
            this.getView().setVisible(false,"bar_save");
            this.getView().setVisible(false,"bar_saveandnew");
            this.getView().setVisible(false,"bar_submit");
            this.getView().setVisible(false,"bar_audit");
            this.getView().setVisible(false,"bar_unaudit");
            this.getView().setVisible(false,"bar_disable");

        }
    }

}